package com.xdap.keymen.controller;

import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/custom")
@RequiredArgsConstructor
public class IndexTestController {
    @GetMapping("/list")
    public String listProductwByPage(
            @RequestParam(value = "keyWord", required = false) String keyWord,
            @RequestParam(value = "page", required = true, defaultValue = "1") Integer page,
            @RequestParam(value = "pageSize", required = true, defaultValue = "10") Integer pageSize) {
        return "OK";
    }
}
